import request from "@/utils/request";

// 查询客户动态列表
export function listBizCustomerDongtai(query) {
  return request({
    url: "/biz/bizCustomerDongtai/list",
    method: "get",
    params: query,
  });
}

// 查询客户动态详细
export function getBizCustomerDongtai(id) {
  return request({
    url: "/biz/bizCustomerDongtai/" + id,
    method: "get",
  });
}

// 新增客户动态
export function addBizCustomerDongtai(data) {
  return request({
    url: "/biz/bizCustomerDongtai",
    method: "post",
    data: data,
  });
}

// 修改客户动态
export function updateBizCustomerDongtai(data) {
  return request({
    url: "/biz/bizCustomerDongtai",
    method: "put",
    data: data,
  });
}

// 删除客户动态
export function delBizCustomerDongtai(id) {
  return request({
    url: "/biz/bizCustomerDongtai/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizCustomerDongtai/findMaxSort",
    method: "get",
  });
}
// 导出客户动态
export function exportBizCustomerDongtai(query) {
  return request({
    url: "/biz/bizCustomerDongtai/export",
    method: "get",
    params: query,
  });
}
